#ifndef ZMATH_H
#define ZMATH_H

#include <QObject>


double Slope(QPointF P0,QPointF P1);
double VerticalSlope(double nSlope);
double HeadingAng(QPointF P0,QPointF P1);
double DistanceP2P(QPointF P0,QPointF P1);
double AngAtBaseCoordinate(QPointF PBase,QPointF PDir,QPointF PIn);


QPointF FootPoint(QPointF StartP,QPointF EndP,QPointF ThirdP);

QPointF OffsetPoint(QPointF BaseP,QPointF P0, QPointF P1,double offset);
int PointPostion(QPointF P0,QPointF P1,QPointF P2);


#endif // ZMATH_H
